﻿using DevComponents.DotNetBar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PlanningGIS.Manager
{
    /// <summary>
    /// 应用程序所有表单的命令
    /// </summary>
    public class BillCommands
    {
        /// <summary>
        /// 
        /// </summary>
        private DocumentCommands _DepartmentCommands = new DocumentCommands();
        /// <summary>
        /// 获取或设置部门管理5控件按钮事件
        /// </summary>
        public DocumentCommands DepartmentCommands
        {
            get { return _DepartmentCommands; }
            set { _DepartmentCommands = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private DocumentCommands _RoleCommands = new DocumentCommands();
        /// <summary>
        /// 获取或设置角色管理控件按钮事件
        /// </summary>
        public DocumentCommands RoleCommands
        {
            get { return _RoleCommands; }
            set { _RoleCommands = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private DocumentCommands _FunctionCommands = new DocumentCommands();
        /// <summary>
        /// 获取或设置功能权限控件按钮事件
        /// </summary>
        public DocumentCommands FunctionCommands
        {
            get { return _FunctionCommands; }
            set { _FunctionCommands = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private DocumentCommands _TocCommands = new DocumentCommands();
        /// <summary>
        /// 获取或设置Toc功能管理控件按钮事件
        /// </summary>
        public DocumentCommands TocCommands
        {
            get { return _TocCommands; }
            set { _TocCommands = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private DocumentCommands _DataCommands = new DocumentCommands();
        /// <summary>
        /// 获取或设置数据权限控件按钮事件
        /// </summary>
        public DocumentCommands DataCommands
        {
            get { return _DataCommands; }
            set { _DataCommands = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private DocumentCommands _UserCommands = new DocumentCommands();
        private DocumentCommands _AdUserCommands = new DocumentCommands();
        /// <summary>
        /// 获取或设置用户管理控件按钮事件
        /// </summary>
        public DocumentCommands UserCommands
        {
            get { return _UserCommands; }
            set { _UserCommands = value; }
        }
        public DocumentCommands AdUserCommands
        {
            get { return _AdUserCommands; }
            set { _AdUserCommands = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        private DocumentCommands _LogCommands = new DocumentCommands();
        /// <summary>
        /// 获取或设置日志管理控件按钮事件
        /// </summary>
        public DocumentCommands LogCommands
        {
            get { return _LogCommands; }
            set { _LogCommands = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private DocumentCommands _SecuritySetCommands = new DocumentCommands();
        /// <summary>
        /// 获取或设置安全设置控件按钮事件
        /// </summary>
        public DocumentCommands SecuritySetCommands
        {
            get { return _SecuritySetCommands; }
            set { _SecuritySetCommands = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private DocumentCommands _MXDCommands = new DocumentCommands();
        /// <summary>
        /// 获取或设置配图模板控件按钮事件
        /// </summary>
        public DocumentCommands MXDCommands
        {
            get { return _MXDCommands; }
            set { _MXDCommands = value; }
        }
        
        /// <summary>
        /// 
        /// </summary>
        private Command _ChangeMetroTheme;
        /// <summary>
        /// 改变主题颜色事件
        /// </summary>
        public Command ChangeTheme
        {
            get { return _ChangeMetroTheme; }
            set { _ChangeMetroTheme = value; }
        }

    }

    /// <summary>
    /// 文档（控件）按钮事件
    /// </summary>
    public class DocumentCommands
    {
        /// <summary>
        /// 
        /// </summary>
        private Command _New;
        /// <summary>
        /// 创建并打开新文档按钮事件
        /// </summary>
        public Command New
        {
            get { return _New; }
            set { _New = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private Command _Save;
        /// <summary>
        /// 文档保存按钮事件
        /// </summary>
        public Command Save
        {
            get { return _Save; }
            set { _Save = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private Command _Cancel;
        /// <summary>
        /// 取消按钮事件
        /// </summary>
        public Command Cancel
        {
            get { return _Cancel; }
            set { _Cancel = value; }
        }

    }

}
